package ch.unisi.inf.editor;

import ch.unisi.inf.engine.Image;

/**
 * the abstract class for all the info the user can get, by invoking the getInfo(Image image) method
 *  the value of the requested info is returned
 * 
 * @author matthias.eberli@lu.unisi.ch
 */
public abstract class ImageInfo
{
    private final String name;
    
    public ImageInfo(final String name)
    {
        this.name = name;
    }
    
    public String getName()
    {
        return name;
    }
    
    /**
     * get the infos out of an image
     *
     * @param image the image from which we want to take the infos
     * @return a String containing the wanted infos
     */
    public abstract int getInfo(Image image);
    
    

}
